package com.hs.sfzy.mapper;

import com.hs.sfzy.entity.UserSearchRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName UserSearchRecordMapper
 * @Description TODO
 * @Author cuipengwei
 * @Date 2025年08月14日 16:14
 * @Version 1.0
 */
@Mapper
public interface UserSearchRecordMapper {
    //增加
    Integer addUserSearchRecord(UserSearchRecord userSearchRecord);
    //删除
    Integer deleteUserSearchRecord(Integer id);
    //查询全部
    List<UserSearchRecord> getAllUserSearchRecord();
    //根据id查询
    UserSearchRecord getUserSearchRecordById(Integer id);
    //清除全部
    Integer deleteByUserId(@Param("userId") Integer userId);
    //根据用户id查询
    List<UserSearchRecord> getAllUserSearchRecordByUserId(@Param("userId") Integer userId);
}